Repository navigation
fix(doclang): serialize the footnotes of a track - #1095
Open
shashank11yadav wants to merge 1 commit into
Open
shashank11yadav wants to merge 1 commit into
shashank11yadav wants to merge 1 commit into
Conversation
The DocLang serializer wrote the footnotes of pictures, tables and code, but dropped the ones listed in a track's footnotes. Write them next to the track in an unnamed group, as for the other floating items, and read that group back so the footnotes are re-attached to the track. Signed-off-by: Shashank Yadav <65058495+shashank11yadav@users.noreply.github.com>
Contributor
|
✅ DCO Check Passed Thanks @shashank11yadav, all your commits are properly signed off. 🎉 |
Contributor
Merge Protections🔴 1 of 2 protections blocking · waiting on 👀 reviews
🔴 Require two reviewer for test updatesWaiting for
This rule is failing.When test data is updated, we require two reviewers
Show 1 satisfied protection🟢 Enforce conventional commitMake sure that we follow https://www.conventionalcommits.org/en/v1.0.0/
|
Contributor
AI triage (advisory)Checked commit Warning The AI analysis did not finish. Only the deterministic checks are shown. Topic labels added: CI safety: not assessed. Possibly related pull requests
The |
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #1094
The DocLang serializer wrote the footnotes of pictures, tables and code, but not the footnotes listed in a track's
footnotes. The body walk skipped them as satellites, so they were missing from the output.This change writes them next to the track in an unnamed
<group>, the same shape already used for pictures, tables and code. The deserializer reads that group back and re-attaches the footnotes to the track.DocLang has no dedicated element for float footnotes, so this reuses the
<group>convention. Maintainers may prefer another shape for tracks.Testing:
tests/test_doclang_track.pyand atrack_footnoteround-trip case in the pretty and compact variants. With the fix reverted, the three new tests fail.